package blue.logger;

import com.google.gson.Gson;

public class JsonTransform {
	public static String toJson(Object obj) {
		Gson gson = new Gson();
		return gson.toJson(obj);
	}
	
	public static <T> T fromJson(String json_str,Class<T> cls) {
		Gson gson = new Gson();
		return gson.fromJson(json_str, cls); 
	}
}